#! /bin/sh

DESCRIPTION="Adding Digeks config and making it active :)"

PREREQ=""

. /scripts/casper-functions

prereqs()
{
       echo "$PREREQ"
}

case $1 in
# get pre-requisites
prereqs)
       prereqs
       exit 0
       ;;
esac

log_begin_msg "$DESCRIPTION"

for x in $(cat /proc/cmdline); do
    case $x in
    digeks_debugmode=*)
        DIGEKS_DEBUGMODE=${x#digeks_debugmode=}
        echo "1" > /root/etc/digeks/debug
        ;;
    digeks_enablehd=*)
        DIGEKS_ENABLE_HARDDRIVE=${x#digeks_enablehd=}
        echo "1" > /root/etc/digeks/enable_hd
        ;;
    digeks_enablecd=*)
        DIGEKS_ENABLE_CDROM=${x#digeks_enablecd=}
        echo "1" > /root/etc/digeks/enable_cd
        ;;
    esac
done


# EOF
